<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function Person(name,age,company){
            //var obj={};
            this.name=name;
            this.age=age;
            this.company=company;
            //return obj;
        }
        Person.prototype.motto="教育 为人";//这是继承的  共享的
        Person.prototype.sayName=function(){//这是继承的  共享的
            console.log(this.name);
        }
        var jiu1=new Person("久久",20,"互联网金融");
        var ha1=new Person("坚持",20,"不放弃系统");
        var xi1=new Person("决断",20,"不犹豫集团");
        Person.prototype.isPrototypeOf(jiu1);
        //如果 jiu的__proto__ ===----person.prototype 就是true
        //是否是有 同一个构造函数创造
        
        //原型获取
        Object.getPrototypeOf(jiu1)===Person.prototype;

        //原型链

        


        </script>
</body>
</html>